#!/bin/bash

read -p "key" KEY

echo $KEY
case $KEY in
    [a-z]|[A-Z])
        echo "this is letter";;
    [0-9])
        echo "this is digit";;
    *)
        echo "wrong";;
esac

